package com.spring.design.factory.factorymethod;

public abstract class Pizza {

    protected String name;

    //准备原材料
    public abstract void prepare();

    public void bake(){
        System.out.println(name + " 烘焙");
    }

    public void cut(){
        System.out.println(name + "切割");
    }

    public void box(){
        System.out.println(name + "打包");
    }

    public void setName(String name){
        this.name = name;
    }

}
